﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Repass : System.Web.UI.Page
{
	public string EnterpriseName = "";
    public string UserID = "";
    public string UserPower = "";
    public string Footer = "";
	
    protected void Page_Load(object sender, EventArgs e)
    {
        Common Init = new Common();

        if (!Init.islogin(ref UserID,ref EnterpriseName,ref UserPower))
        {
            Response.Redirect("/Login.aspx");
        }
        string log = Request.Params["log"];
        if (log == "logout")
        {
            Response.Write(log);
            if (Init.logout())
            {
                Response.Redirect("/Login.aspx");
            }
        }
        this.EnableViewState = false;
        Response.Write(Init.InitIndex(EnterpriseName, UserPower));
        Footer = Init.IndexFooter();
        if (!IsPostBack)
        {
            string oldpass = Request.Params["oldpass"];
            string repass = Request.Params["repass"];
            string repassword = Request.Params["repass"];
        }
    }
    Common Init = new Common();
    MsSqlHelper mssql = new MsSqlHelper();
}